package genosAgape.util;
/**
 * Classe para representa o par key, value em um comboBox/List etc..
 */
public class ItemMap< K,V > implements Comparable{	
	private K key;
	private V value;
	
	public ItemMap(){
		this.key = null;
		this.value = null;
	}	
	public ItemMap(K key,V value){
		this.key = key;
		this.value = value;
	}
	public K getKey() {
		return key;
	}
	public V getValue() {
		return value;
	}
	@Override
	public String toString() {
		return value.toString();
	}
	@Override
	public int compareTo(Object o) {
		return toString().compareTo(o.toString());		
	}
}
